


import request from '@/utils/request'

// 查询银行代码列表
export function listInfo(query) {
  return request({
    url: '/houseClosing/info/list',
    method: 'get',
    params: query
  })
}
export function queryNames() {
  return request({
    url: '/houseClosing/info/queryNames',
    method: 'get',
  })
}
// 查询银行代码详细
export function getInfo(id) {
  return request({
    url: '/houseClosing/info/' + id,
    method: 'get'
  })
}

// 新增银行代码
export function addInfo(data) {
  return request({
    url: '/houseClosing/info',
    method: 'post',
    data: data
  })
}

// 修改银行代码
export function updateInfo(data) {
  return request({
    url: '/houseClosing/info',
    method: 'put',
    data: data
  })
}

// 删除银行代码
export function delInfo(id) {
  return request({
    url: '/houseClosing/info/' + id,
    method: 'delete'
  })
}
